<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<input id="btn" type="button" value="jQuery"/>
		<input id="btn1" type="button" value="jQuery1"/>
		
		<script src="../js/jquery-2.1.4.js" type="text/javascript" charset="UTF-8"></script>
		<script type="text/javascript">
		// window.onload = function(){
		// 	var domObj = document.getElementsById('btn');
		// 	domObj.onclick = function(){
		// 		console.log('js onclick');
		// 	}
		// }	
		$(function(){
			var jQueryObj = $('#btn');
			jQueryObj.click(function(){
				console.log('jQuery onclick');
			});
			console.log(jQueryObj);
			
			// document.getElementsByName('input');
			var jQueryObjs = $('input');
			jQueryObjs.click(function(){
				console.log('jQueryObjs onclick')
			});
			console.log(jQueryObjs);
		});
		</script>
	</body>
</html>
